package com.chefu.order.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author goodgoodstudy
 * @since 2021-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_server_order")
@ApiModel(value="ServerOrder对象", description="")
public class ServerOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单id")
    @TableId(value = "so_id", type = IdType.ID_WORKER)
    private Long soId;

    @ApiModelProperty(value = "服务商id")
    private Long spId;

    @ApiModelProperty(value = "车主id")
    @TableField("cuId")
    private Long cuId;

    @ApiModelProperty(value = "订单状态(待接单0待服务1服务中2服务完成3)")
    private Integer orderStatus;

    @ApiModelProperty(value = "支付状态(待支付0已支付1已关闭2已取消3)")
    private Integer payStatus;

    @ApiModelProperty(value = "支付时间")
    private Date payTime;

    @ApiModelProperty(value = "服务项目")
    private String item;

    @ApiModelProperty(value = "总金额，单位为分")
    private Long totalFee;

    @ApiModelProperty(value = "实付金额。单位:分。如:20007，表示:200元7分")
    private Long actualFee;

    @ApiModelProperty(value = "优惠活动id，多个以，隔开")
    private String promotionIds;

    @ApiModelProperty(value = "交易完成时间")
    private Date endTime;

    @ApiModelProperty(value = "交易关闭时间")
    private Date closeTime;

    @ApiModelProperty(value = "评价时间")
    private Date commentTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "车id")
    private Long carId;

    @ApiModelProperty(value = "预约时间")
    private Date appointment;

    @ApiModelProperty(value = "服务商名称")
    private String serverProName;
    @ApiModelProperty(value = "服务商电话号")
    private String serverProPhone;
    @ApiModelProperty(value = "车主名")
    private String userName;
    @ApiModelProperty(value = "车主电话号")
    private String userPhone;
}
